<div id="salesOrderList">
        <?php foreach($salesOrderList as $salesOrder):?>
        <div class="salesOrder" id="<?php echo $salesOrder['invoice']; ?>">
            <?php echo $salesOrder['invoice'].' _ '.$salesOrder['amountcharge']; ?>
            <?php foreach($salesOrderInvoiceList[$salesOrder['invoice']] as $invoice):?>
            <div class="invoice" id="<?php echo $invoice['invoice']?>">                
                <?php echo $invoice['invoice'].' _ '.$invoice['amountcharge']; ?>
            </div>
            <?php endforeach;?>
        </div>
        <?php endforeach?>
    </div>